package shape;

abstract class Shape {
    String Color = "";
    String Name = "";
    boolean IsFilled = false;
    Shape () {

    }
    Shape (String color) {
        IsFilled = true;
        Color = color;
    }
    public String getColor () {
        return Color;
    }
    public void setColor (String color) {
        IsFilled = true;
        Color = color;
    }
    public boolean isFilled () {
        return IsFilled;
    }
    public abstract double getArea ();
    public abstract double getPerimeter();
    public String toString () {
        return Name + " (" + (IsFilled ? Color : "#") +")";
    }
}
